﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/RedesignedMaster.Master" Inherits="System.Web.Mvc.ViewPage<List<final_darskade.Models.klass>>" %>

<asp:Content ID = "titleContent" ContentPlaceHolderID = "TitleContent" runat = "server">
    صفحه‌ی استاد
</asp:Content>

<asp:Content ID = "breadcrumbs" ContentPlaceHolderID = "Breadcrumbs" runat = "server">
    <a href = "/">صفحه اصلی</a>
</asp:Content>

<asp:Content ID = "mainContent" ContentPlaceHolderID = "MainContent" runat = "server">
    <table>
        <thead>
            <th>گروه درسی</th>
            <th>نام درس</th>
            <th>زمان کلاس</th>
            <th>ترم ارائه</th>
            <th>تاریخ شروع امتحان</th>
            <th>تاریخ پایان امتحان</th>
            <th>تنظیمات کلاس</th>
        </thead>
        <tbody>
            <%if(Model != null && Model.Any()) { %>
                <%foreach(var row in Model){ %>
                    <td><%=row.id%></td>
                    <td><%=row.course.name%></td>
                    <td><%=row.time_in_week%></td>
                    <td><%=row.term %></td>
                    <td><%=row.start_exam_date_time%></td>
                    <td><%=row.end_exam_date_time%></td>
                    <td><!--<a href = "/Prof/StudentList?klassid=<%=row.id%>">لیست دانشجویان</a>&nbsp;|&nbsp-->
                        <a href = "/Privilege/prof_privilegeList?klassid=<%=row.id%>">لیست دسترسی‌ها</a></td>
                <%} %>
            <%} %>
        </tbody>
    </table>
</asp:Content>

<asp:Content ID = "rightColumn" ContentPlaceHolderID = "RightColumn" runat = "server">
    
</asp:Content>
